<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>新增订单</title>
</head>
<body>
新增订单页面<hr>
<form action="addOrder" method="post">
	客户：<input type="text" name="name"><br>
	商品：<select name="product">
			<option value="">--请选择--</option>
				<c:forEach items="${products}" var="item">
					<option value="${item.id}" <c:if test="${item.id == product}">selected</c:if>>
						${item.name}
					</option>
				</c:forEach>
		</select><br>
	<input type="submit" value="添加商品">
</form>
</body>
</html>